{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="form-group">
                <div class="col-sm-12">
                    <div class="ibox-content">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">上级：</label>
                            <div class="col-sm-9">
                                <input name="" type="text" class="form-control" value="{$name.invite_user_name} ({$name.invite_user_id})" disabled>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">类型：</label>
                            <div class="col-sm-9">
                                <div class="radio i-checks">
                                    <!--<label><input type="radio" value="1" name="channel">金币</label>-->
                                    <label><input type="radio" value="2" name="channel" checked>积分</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">操作：</label>
                            <div class="col-sm-9">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="1" name="toward" checked>增加
                                    </label>
                                    <!--<label>
                                        <input type="radio" value="0" name="toward">扣除
                                    </label>-->
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">已充值金额：</label>
                            <div class="col-sm-9">
                                <input name="money" type="text" class="form-control" value="" onkeyup="num(this)" size="12">
                            </div>
                        </div>
                    </div>
                </div>
        </form>
    </div>
</div>

{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(document).ready(function () {
            $(".i-checks").iCheck({
                checkboxClass: "icheckbox_square-green",
                radioClass: "iradio_square-green",
            })
        });
        // $('#urlid').click(function(){
        //     if ($(this).is(':checked')) {
        //         $('#urltext').removeAttr("disabled");
        //     }else{
        //         $('#urltext').attr({"disabled":"disabled"});
        //     }
        // })
    });
    function msg(){
        layer.msg("上传成功")
    }
    function num(obj){
        obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
        obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
    }
</script>
{include file="public/bottom" /}

